﻿using Validate.Library;

namespace Authority.Model
{
    /// <summary>
    /// 按钮操作请求类
    /// </summary>
    public class ButtonsOperateRequest
    {
        /// <summary>
        /// gCode
        /// </summary>
        public string gCode
        {
            get; set;
        }

        /// <summary>
        /// 按钮名称
        /// </summary>
        [Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 25, Description = "按钮名称")]
        public string sName
        {
            get; set;
        }


        /// <summary>
        /// 按钮Class
        /// </summary>
        [Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 50, Description = "按钮Class")]
        public string sClass
        {
            get; set;
        }

        /// <summary>
        /// 按钮icon
        /// </summary>
        [Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 50, Description = "按钮icon")]
        public string sIcon
        {
            get; set;
        }


        /// <summary>
        /// 按钮ID
        /// </summary>
        [Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 50, Description = "按钮ID")]
        public string sId
        {
            get; set;
        }

        /// <summary>
        /// 授权码
        /// </summary>
        [Validate(ValidateType.NotEmpty | ValidateType.MaxLength, MaxLength = 50, Description = "授权码")]
        public string sAuthorizationCode
        {
            get; set;
        }

        /// <summary>
        /// 排序字段
        /// </summary>
        [Validate(ValidateType.NotEmpty,Regex = ValidateRegex.Number, Description = "排序字段")]
        public double iSort
        {
            get; set;
        }
    }
}
